
//----------------有关时间的库函数---------------------------------//
#include <sys/time.h>

namespace LIB
{

    long getCurTimestampMs()
    {
        struct timeval tv;

        gettimeofday(&tv, (void*)0);

        long timestamp = tv.tv_sec * 1000 + tv.tv_usec / 1000;

        return timestamp;
    }

};
